<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		
		<script type="text/javascript">
			
			function Father(money,car){
				this.money=money;
				this.car = car ;
				this.say=function(){
					console.log("我有",money,"还有一辆",car);
				}
			}
			
			Father.prototype.jiNeng="开车";
			
			function Son(money,car){
				Father.call(this,money,car);
			}
			
			var f1=new Father(100000,"红旗");
			console.log("f1:",f1);
			var s1=new Son(100,"五菱宏光");
			console.log("s1:",s1);
			
		</script>
	</body>
</html>
